package com.foreknow.demo5;

/**
 * 构造方法
 */
public class ConstructorDemo {
    //构造方法
    public ConstructorDemo(String name) {
        System.out.println(name);
    }

    public static void main(String[] args) {
        ConstructorDemo demo = new ConstructorDemo("tom");
    }

}
